package com.google.android.material.bottomnavigation;

import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import o.bd;
import o.bj;
import o.bn;
import o.bv;

@RestrictTo({d.LIBRARY_GROUP})
public class BottomNavigationPresenter implements bn {
    private int ˊ;
    private bd ˎ;
    private boolean ˏ = false;
    private BottomNavigationMenuView ॱ;

    static class SavedState implements Parcelable {
        public static final Creator<SavedState> CREATOR = new Creator<SavedState>() {
            public /* synthetic */ Object createFromParcel(Parcel parcel) {
                return ˏ(parcel);
            }

            public /* synthetic */ Object[] newArray(int i) {
                return ॱ(i);
            }

            public SavedState ˏ(Parcel parcel) {
                return new SavedState(parcel);
            }

            public SavedState[] ॱ(int i) {
                return new SavedState[i];
            }
        };
        int ˊ;

        SavedState() {
        }

        SavedState(Parcel parcel) {
            this.ˊ = parcel.readInt();
        }

        public int describeContents() {
            return 0;
        }

        public void writeToParcel(@NonNull Parcel parcel, int i) {
            parcel.writeInt(this.ˊ);
        }
    }

    public void ॱ(BottomNavigationMenuView bottomNavigationMenuView) {
        this.ॱ = bottomNavigationMenuView;
    }

    public void ˏ(Context context, bd bdVar) {
        this.ˎ = bdVar;
        this.ॱ.ˎ(this.ˎ);
    }

    public void ˊ(boolean z) {
        if (!this.ˏ) {
            if (z) {
                this.ॱ.ˏ();
            } else {
                this.ॱ.ˊ();
            }
        }
    }

    public void ˎ(bn.d dVar) {
    }

    public boolean ˎ(bv bvVar) {
        return false;
    }

    public void ˏ(bd bdVar, boolean z) {
    }

    public boolean ˏ() {
        return false;
    }

    public boolean ˏ(bd bdVar, bj bjVar) {
        return false;
    }

    public boolean ˎ(bd bdVar, bj bjVar) {
        return false;
    }

    public void ˊ(int i) {
        this.ˊ = i;
    }

    public int ॱ() {
        return this.ˊ;
    }

    public Parcelable ʽ() {
        Parcelable savedState = new SavedState();
        savedState.ˊ = this.ॱ.ˎ();
        return savedState;
    }

    public void ˏ(Parcelable parcelable) {
        if (parcelable instanceof SavedState) {
            this.ॱ.ˊ(((SavedState) parcelable).ˊ);
        }
    }

    public void ˎ(boolean z) {
        this.ˏ = z;
    }
}
